From: Florian Müllner Date: Mon, 31 Jan 2022 22:55:57 +0000 (+0100) Subject: build: Replace array with dict X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~530^2^2~129 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d6b689eaf158d942bcbd8f5849b1f0571bf1c955;p=gnome-shell.git build: Replace array with dict It's more readable than "magic" indexes, and makes it easier to provide fallback values for optional entries. Part-of: --- diff --git a/data/meson.build b/data/meson.build index 76ae45c93..c4264e015 100644 --- a/data/meson.build +++ b/data/meson.build @@ -48,16 +48,19 @@ subdir('icons') subdir('theme') data_resources = [ - ['dbus-interfaces', []], - ['osk-layouts', []], - ['theme', theme_deps] + {'name': 'dbus-interfaces'}, + {'name': 'osk-layouts'}, + {'name': 'theme', 'deps': theme_deps} ] foreach resource : data_resources + name = resource.get('name') + deps = resource.get('deps', []) + gnome.compile_resources( - 'gnome-shell-' + resource[0], - 'gnome-shell-@0@.gresource.xml'.format(resource[0]), - source_dir: resource[0], - dependencies: resource[1], + 'gnome-shell-' + name, + 'gnome-shell-@0@.gresource.xml'.format(name), + source_dir: name, + dependencies: deps, gresource_bundle: true, install: true, install_dir: pkgdatadir